Bluetooth Low Energy in iOS Swift: Your Guide to Programming the Internet of Things by Tony Gaitatzis
Author:Tony Gaitatzis [Gaitatzis, Tony]
Language: eng
Format: azw3, pdf
Publisher: BackupBrain
Published: 2017-09-27T04:00:00+00:00
Property Data Type Value
.major NSNumber iBeacon Major Number
.minor NSNumber iBeacon Minor Number
.proximityUUID UUD iBeacon Proximity UUID
For security reasons, iOS does not reveal the transmission power of an iBeacon, which can be used to determine the distance between the Central and the iBeacon.
An iBeacon's distance from the Ranging Central can be approximated using the CLBeacon.proximity property
Table 11-2. CLProximity
Value Signal Strength Approximate Distance
immediate Strong Up to a few centimeters
near Medium Up to a few meters
far Weak More than a few meters
unknown Extremely weak Impossible to determine
This can be implemented in code like this: func getProximityString(fromBeacon: CLBeacon) -> String { switch beacon.proximity {
case .unknown:
return "Unknown"
case .immediate:
return "Immediate"
case .near:
return "Near"
case .far:
return "Far"
}
}
If the transmission power of the iBeacon is known, that can be useful for determining how far away the iBeacon is.
Download
Bluetooth Low Energy in iOS Swift: Your Guide to Programming the Internet of Things by Tony Gaitatzis.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Whiskies Galore by Ian Buxton(42088)
Introduction to Aircraft Design (Cambridge Aerospace Series) by John P. Fielding(33178)
Small Unmanned Fixed-wing Aircraft Design by Andrew J. Keane Andras Sobester James P. Scanlan & András Sóbester & James P. Scanlan(32836)
Aircraft Design of WWII: A Sketchbook by Lockheed Aircraft Corporation(32335)
Craft Beer for the Homebrewer by Michael Agnew(18289)
Turbulence by E. J. Noyes(8121)
The Complete Stick Figure Physics Tutorials by Allen Sarah(7426)
The Institute by Stephen King(7094)
The Thirst by Nesbo Jo(7008)
Kaplan MCAT General Chemistry Review by Kaplan(6991)
Bad Blood by John Carreyrou(6675)
Modelling of Convective Heat and Mass Transfer in Rotating Flows by Igor V. Shevchuk(6496)
Weapons of Math Destruction by Cathy O'Neil(6371)
Learning SQL by Alan Beaulieu(6347)
Man-made Catastrophes and Risk Information Concealment by Dmitry Chernov & Didier Sornette(6141)
Permanent Record by Edward Snowden(5895)
Digital Minimalism by Cal Newport;(5841)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5621)
iGen by Jean M. Twenge(5464)